package com.wang.test;

public class Animal {
	private String name;
	private Integer age = 255555;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Animal(String name, Integer age) {
		super();
		this.name = name;
		this.age = age;
	}
	private Animal(String name) {
		this.name = name;
	}
	public Animal() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "[name=" + name + ", age=" + age + "]";
	}
	@MyAnnotation(vip = "这个是父类Animal的public方法的注解")
	public void show(){
		System.out.println("这个就是公有的方法！");
	}
	private void eat(){
		System.out.println("这个就是私有的方法！");
	}
	
}
